<script type="text/javascript">
menuLayers.show = function(id, controller, objid, objname, e) {
    var mnu = document.getElementById? document.getElementById(id): null;
    if (!mnu) return;
    this.activeMenuID = id;
    if ( mnu.onmouseout == null ) mnu.onmouseout = this.mouseoutCheck;
    if ( mnu.onmouseover == null ) mnu.onmouseover = this.clearTimer;
    viewport.getAll();
    rewritePopupContent(controller, objid, objname);

    this.position(mnu,e);
}
</script>

<script>
function confirmAndDelete(url) {
	if (confirm("Adakah Anda Pasti?")) {
		location = url
	}
	
}


function rewritePopupContent(controller, objid, objname) {
    $('popmenu').style.width = 180;
    $('popmenu').innerHTML = "<ul>" + 
					       "<li><a href=\""  + "?act=view_murid&" + "id=" + objid + "\">&nbsp;&nbsp;Papar Maklumat Murid</a>" + 
					       "<li><a href=\""  + "?act=edit_murid&" + "id=" + objid + "\">&nbsp;&nbsp;Kemaskini Maklumat Murid</a>" + 
					       "<li><a href=\"javascript: confirmAndDelete('?act=delete_sek&id=" + objid + "')" + "\">&nbsp;&nbsp;Hapus</a><hr size=1>" + 
					       "<li><a href=\""  + "?act=edit_guru&" + "id=" + objid + "\">&nbsp;&nbsp;Tukar Kelas</a>" + 
					       "<li><a href=\""  + "?act=edit_guru&" + "id=" + objid + "\">&nbsp;&nbsp;Tukar Sekolah</a>" + 
					       "</ul>"
     
}

function a(id) {
	MM_openBrWindow('/course_implementations/show_timetable2/'+id,'','scrollbars=yes,width=1000,height=600')
}
</script>

        
        <div id="content">
            <div id="content_header" class="size_20" style=" border-bottom-width:medium; border-bottom-style:solid; border-bottom-color:#777777">
            	<img src="images/icn_mytaskTitle.gif" align="absmiddle" width="" height=""> Murid </div>
        	<div id="content_bgblue">
                <div id="content_bgwhite">

        	
            
<div style="border: 0pt solid silver; width: 100%;">

<? alert_some_message()?>


<form name="search" action="?act=search_murid" method="POST" target="" onSubmit="" onReset="">
<fieldset style="background:#ffffff; border-width:thin; border-style:solid; padding:10px; border-color:#CCCCCC;">
<legend style="font-size:1.0em; font-weight: bold;">Carian</legend>

<table border="0" cellpadding="5" cellspacing="1" width="100%">
  <tbody>
    <tr id="SkimRow" style="display: ;">
      <td class="TableField" width="8"><font class="ErrorMessage"></font></td>
      <td class="TableField" width="150">Negeri</td>
      <td class="TableField" width="18">:</td>
      <td class="TableRowLeft" width="487"><span class="classRow">
        <select name="n" size="0" onBlur="" onChange="return updateModules(); " onFocus="">
          <option selected="selected" value="-1"> Pilih Negeri</option>
          <option value="01"> Johor</option>
          <option value="02"> Kedah</option>
          <option value="03"> Kelantan</option>
          <option value="04"> Melaka</option>
          <option value="05"> Negeri Sembilan</option>
          <option value="06"> Pahang</option>
          <option value="08"> Perak</option>
          <option value="09"> Perlis</option>
          <option value="07"> Pulau Pinang</option>
          <option value="12"> Sabah</option>
          <option value="13"> Sarawak</option>
          <option value="10"> Selangor</option>
          <option value="11"> Terengganu</option>
          <option value="14"> WP Kuala Lumpur</option>
          <option value="15"> WP Labuan</option>
          <option value="16"> WP Putrajaya</option>
        </select>
      </span></td>
    </tr>
    <tr id="JenisBantuanRow" style="display: ;">
      <td class="TableField" width="8">&nbsp;</td>
      <td class="TableField" width="150">PPD</td>
      <td class="TableField" width="18">:</td>
      <td class="TableRowLeft" width="487"><span class="classRow">
        <select name="p" size="0" onBlur="" onChange="" onFocus="">
          <option selected="selected" value="">Pilih PPD</option>
        </select>
      </span></td>
    </tr>
    <tr id="NegeriRow" style="">
      <td class="TableField" width="8">&nbsp;</td>
      <td class="TableField" width="150">Agensi Pelaksana </td>
      <td class="TableField" width="18">:</td>
      <td class="TableRowLeft" width="487"><select name="a" size="0" onBlur="" onChange="" onFocus="">
        <option selected="selected" value="-1"> Pilih Agensi Pelaksana </option>
        <option value="01"> KPM</option>
        <option value="02"> Swasta</option>
        <option value="03"> KEMAS</option>
        <option value="04"> Perpaduan</option>
      </select>
        <input name="Negeri" value="" size="10" type="hidden">      </td>
    </tr>
    <tr id="SkimRow" style="display: ;">
      <td class="TableField" width="8"><font class="ErrorMessage"></font></td>
      <td class="TableField" width="150">Nama / No MyKid/No Paspot Murid </td>
      <td class="TableField" width="18">:</td>
      <td class="TableRowLeft" width="487"><input type="text" name="q" value="<?=$_REQUEST['q']?>" size="40"></td>
    </tr>
    
    
    <tr class="NormalTextLeft">
      <td colspan="4" align="center"><span class="TableRowLeft">
        <input name="button" type="submit" onClick="" value="Cari" style=" width:100px;">
      </span></td>
    </tr>
  </tbody>
</table>
</fieldset>

<br>
</form>

<? if ($res_count > 0) {?>
<br>
<br>
<p>

<!--fieldset style="background:#ffffff; border-width:thin; border-style:solid; padding:10px; border-color: #dddddd;">
<legend style=" font-weight:bold;">Senarai Prasekolah</legend-->
            <table width="100%" border="0" cellspacing="1" cellpadding="2">
              <tr>
                <td align="left" scope="col" style=" font-weight:bold; border-bottom-style:solid; border-bottom-width:thin;">Hasil Carian  : <?=$res_count?></td>
              </tr>
            </table>
			
			<br/>
            <font class="NormalTextLeft">
            
                <li>&nbsp;Isihan <i>default</i> senarai adalah pada lajur Nama.  
                </li><li>&nbsp;Klik pada lajur yang hendak diisih.
                
                        </li>
                <li>&nbsp;Klik pada Nama Murid untuk paparan butir-butir selanjutnya.</li>
                    
            </font>
<br>
<br>
<div style=" overflow: ;">
<table width="100%" border="0" cellspacing="1" cellpadding="2" style=" border:thin; border-color:#CCCCCC; border-style:solid;">
  <tr>
    <td width="20" bgcolor="#999999" scope="col"><span class="style3">Bil</span></td>
    <td bgcolor="#999999" scope="col"><span class="style3">Nama Murid </span></td>
    <td bgcolor="#999999" scope="col"><span class="style3">No MyKid </span></td>
    <td bgcolor="#999999" scope="col"><span class="style3">Jantina</span></td>
    <td bgcolor="#999999" scope="col"><span class="style3">Status</span></td>
    <td bgcolor="#999999" scope="col" width="30">&nbsp;</td>
  </tr>

<?
$even = true; $i=0;
while ($dat = pg_fetch_object($res)) {
$i++;
$even = !$even;
$bgcolor = ($even)? "":"#E9F0F5";
?>
  <tr bgcolor="<?=$bgcolor?>" onMouseOver="this.style.background='#FFFFCC'" onMouseOut="this.style.background='<?=$bgcolor?>'" onMouseDown="menuLayers.show('popmenu','index.jsp?act=', '<?=$dat->id?>', 'KPPT(PENDAKWAAN)', event)">
    <td><?=$i?>.</td>
    <td><?=$dat->name?></td>
    <td><?=$dat->ic_new?></td>
    <td><? echo ($dat->gender_id=='1')? "L":"P";?></td>
    <td><? echo ($dat->aktif=='t')? "Aktif":"Aktif"; ?></td>
    <td align="center">&nbsp;</td>
  </tr>
<? } ?>
</table>
</div>

<table width="100%" border="0" cellspacing="1" cellpadding="2">
  <tr>
    <td>&nbsp;</td>
    <td width="20" align="left"><a href="?act=list_sek&p=<?=$_REQUEST['p']-1?>"></a></td>
    <td align="right" width="100">&nbsp;</td>
    <td width="20" align="right"><a href="?act=list_sek&p=<?=$_REQUEST['p']+1?>"></a></td>
  </tr>
</table>
<!--/fieldset-->
<? }
else {
	if (!empty($_REQUEST['q'])) {
		echo "Tiada hasil carian.";	
	}
}
 // end of search result list?>

</div>


 <br>
 <br>
 <br>
 <br>
 <br>
 <br>
 <br>
 <br>
 <br>
 <br> <!--div id="content_footborder" style="width:930px; position:absolute; left:0; background:#ccccff; text-align:center">
  &copy; Kementerian Pelajaran Malaysia, 2010.
 </div-->
</div>
<!-- close content_bgwhite -->
</div>
<!-- close content_bgblue -->
</div>
<!-- close content -->

</div>
<!-- close container_content -->

</div>
<!-- close container -->
